
package org.solmix.fmk.velocity;

import java.util.HashMap;

import org.solmix.fmk.datasource.DataSourceManager;

/**
 * get data source
 * 
 * @author solomon
 * @since 0.0.1
 * @version $ID$ 2010-12-21 solmix-ds
 */
public class DataSourcesHandler extends HashMap
{

   public DataSourcesHandler()
   {
   }

   @Override
   public Object get( Object key )
   {
      try
      {
         return DataSourceManager.getDataSource(key != null ? key.toString() : null);
      } catch ( Exception e )
      {
         return null;
      }
   }
}
